package com.mengfx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mengfx.bean.PostLabel;
import com.mengfx.mapper.PostLabelMapper;
import com.mengfx.service.PostLabelService;
@Service("PostLabelService")
public class PostLabelServiceImpl implements PostLabelService {

	@Autowired
	private PostLabelMapper postLabelMapper;
	
	public boolean insertPostLabel(PostLabel bean) {
		
		return postLabelMapper.insertSelective(bean) > 0;
	}

	@Override
	public void updatePostId(Long prePostId, Long afterPostId) {
		postLabelMapper.updatePostId(prePostId, afterPostId);
	}

}
